package edu.sctu.zcy.month201504.day20150430;

/**
 * Created by user24 on 2015/4/30.
 */
public class DayClient {

    public static void main(String[] args) {

        System.out.println("hello world!");
        //实现计算器的加减乘除
        Calculator calculator = new Calculator();

        int result;
        result = calculator.plus(3, 6);
        System.out.println("3 + 6 =" + result);

        result = calculator.sub(3, 6);
        System.out.println("3 - 6 =" + result);

        result = calculator.mult(3, 6);
        System.out.println("3 * 6 =" + result);

        result = calculator.devide(3, 6);
        System.out.println("3 / 6 =" + result);


    }
}
